# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2021年10月13日
"""
import pandas as pd

year = [1992, 1983, 1922, 1932, 1973]

box = [1900, 1950, 2000]
result = pd.cut(year, box, labels=False)

print(result)
print(pd.value_counts(result))
